<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAnswersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('answers', function (Blueprint $table) {
            $table->increments('id');
            $table->string('face')->default('/public/face/face.png')->comment('评论头像');
            $table->string('name')->default('')->comment('回复姓名');
            $table->string('email')->default('')->comment('邮箱');
            $table->string('website')->default('')->comment('网站');
            $table->string('content')->default('')->comment('回复内容');
            $table->enum('status',[0,1])->default(1)->comment('0删除 1存在');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('answers');
    }
}
